package com.example.music.network;

import com.example.music.entity.DataBanner;
import com.example.music.entity.DataMusic;
import com.example.music.entity.RequestFilter;
import com.example.music.entity.RequestUp;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

public class Api {
    public interface bannerService {
        @GET("music/banner")
        Call<DataBanner<List<DataMusic>>> dataBanner();

        @POST("music/up")
        Call<DataBanner<List<DataMusic>>> dataUP(@Body RequestUp up);

        @POST("music/filter")
        Call<DataBanner<List<DataMusic>>> dataFilter(@Body RequestFilter filter);
    }
}
